window()
Description:
This will create a window and return it´s handle. Please note that the handle variable must have the type handle: ".window" assigned to it.
Syntax:
Required syntax: |
| windowhandle.window = window( x , y , width , height , guidesign , font , activate , title$ )
|
Optional syntax: |
| windowhandle.window = window( x , y , width , height , guidesign , font , activate , title$ , [control] , [move] , [resize] , [buttons], [header] , [show] , [lock] , [min_width] , [min_height] , [max_width] , [max_height] , [limit_area_x] , [limit_area_y] , [limit_area_wid] , [limit_area_hei] )
|
Parameters:
Required parameters |
Description |
|
| x | Horizontal position in used drawing buffer | |
| y | Vertical position in used drawing buffer | |
| width | total width of window in pixels | |
| height | total height of window in pixels | |
| guidesign | a handle to a previuosly created/loaded guidesign | |
| font | the font used to display title$ | |
| activate | boolean value to activate window when created. (don´t activate = 0 / activate = 1) | |
| title$ | a string used to display the title of the window | |
| Optional parameters | Discription |
Default |
| control | How the user controls the window: 0 : A click in the
titlebar will bring window to front |
0 |
| move | boolean value to set if window is allowed to be moved or not. (not movable = 0 / movable = 1) | 1 |
| resize | boolean value to set if window is allowed to be resized or not. (not resizable = 0 / resizable = 1) | 0 |
| buttons | Used to display "closebutton" in topleft corner
and/or depthbutton in topright corner. 0 : No buttons displayed 1 : Only a "closebutton" is displayed 2 : Only a "depthbutton" is displayed 3 : Both buttons are displayed Use either windowclosed() or windowcheckifclosed(), to determine if the user has clicked a window´s "closebutton"
|
0 |
| header | boolean value to show/hide window´s title bar. (hide = 0 / show = 1) | 1 |
| show | boolean value to show/hide window. (hide = 0 / show = 1) Default is 1 | 1 |
| lock | boolean value to lock/unlock window; locked means: user cannot interact with window. (unlock = 0 / lock = 1) | 0 |
| min_width | minimal width of window in pixels (any width = -1) Default is | -1 |
| min_height | minimal height of window in pixels (any height = -1) Default is -1 | -1 |
| max_width | maximum width of window in pixels (any width = -1) Default is -1 | -1 |
| max_height | maximum height of window in pixels (any height = -1) Default is -1 | -1 |
| limit_area_x | Horizontal ( x ) position of limit area of the window at pixel position (anywhere = -1) Default is -1 | -1 |
| limit_area_y | Vertical ( y ) position of limit area of the window at pixel position (anywhere = -1) Default is -1 | -1 |
| limit_area_wid | Width of limit area of the window in pixels (any size = -1) Default is -1 | -1 |
| limit_area_x | Height of limit area of the window in pixels (any size = -1) Default is -1 | -1 |
Returns:
A window handle for future window-reference
Example: